package com.lanchetech.bean.vo;

import com.lanchetech.bean.dto.ActivityDTO;
import com.lanchetech.entity.CoinDeduction;
import com.lanchetech.entity.Freight;
import com.lanchetech.entity.FreightList;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 确认订单中SKU维度的单个商品信息
 */
@Data
public class OrderSkuItemVO {
    SkuItemVO sku;
    ActivityDTO activity;
    /**
     * 已选择的购买数量
     */
    Integer count;
    /**
     * 最终付款价
     */
    BigDecimal finalPrice;
    /**
     * 每个sku的积分抵扣规则
     */
    CoinDeduction coinDeduction;

    /**
     * 默认运费模板
     */
    Freight freight;

    /**
     * 特殊运费模板
     */
    List<FreightList> freightLists;

    /**
     * 预约的时间
     */
    Date appointmentTime;

    /**
     * 商家id
     */
    Long tenantId;

    /**
     * 店铺昵称
     */
    String tenantNickname;

    /**
     * 是否为分享赚商品
     */
    private boolean share;
    /**
     * 分享人ID
     */
    private long beneficiaryUserId;
    /**
     * 分享赚标识
     */
    private long shareActivityId;
    /**
     * 前端计算金额
     */
    private BigDecimal miniCommissionScaleRebate = BigDecimal.ZERO;
    private BigDecimal miniHiCoinScaleRebate = BigDecimal.ZERO;
    private BigDecimal discountPrice = BigDecimal.ZERO;
}
